#include <iostream>
#include <map>
using namespace std;

signed main()
{
    map<string,int> ma;
    int n,m,s,flag = 0;
    cin>>n>>m>>s;
    string st[1005];
    for(int i=1;i<=n;i++)    cin>>st[i];
    for(int i=s;i<=n;i+=m){
        while(i<=n&&ma.find(st[i])!=ma.end()){
            i++;
        }
        if(i<=n){
            cout<<st[i]<<"\n";
            ma[st[i]] = 1;
            flag = 1;
        }
    }
    if(!flag)    cout<<"Keep going...\n";
    return 0;
}
